from flask import render_template

from tzq.database_compare_system import dcs_bp


# 首页

@dcs_bp.route('/')
def dcs_index():
    return render_template('dcs_index.html')


# 老版 比对系统
@dcs_bp.route('/databaseSource', methods=['GET'])
def database_source():
    return render_template('database_source.html')


@dcs_bp.route('/tableInfo', methods=['GET'])
def table_info():
    return render_template('table_info.html')


@dcs_bp.route('/compareTask', methods=['GET'])
def compare_task():
    return render_template('compare_task.html')


@dcs_bp.route('/base_layui')
def base_layui():
    return render_template('base_layui.html')


@dcs_bp.route('/test_ok', methods=['GET'])
def test_ok():
    return render_template('test_bak_原始OK的模板.html')


# 新版 比对系统
# 概况
@dcs_bp.route('/console')
def dsc_console():
    return render_template('console.html')


# 配置数据源
@dcs_bp.route('/configDatabaseSource', methods=['GET'])
def config_database_source():
    return render_template('config_database_source.html')


# 配置比对任务
@dcs_bp.route('/configCompareTask', methods=['GET'])
def config_compare_task():
    return render_template('config_compare_task.html')


# 【表字段】信息查询
@dcs_bp.route('/configTableInfo', methods=['GET'])
def config_table_info():
    return render_template('config_table_info.html')


# 【索引】信息查询
@dcs_bp.route('/displayIndexInfo', methods=['GET'])
def display_index_info():
    return render_template('display_index_info.html')


# 【建表DDL脚本】信息查询
@dcs_bp.route('/tableDefineInfo', methods=['GET'])
def table_define_info():
    return render_template('table_define.html')


# 模型比对修复
@dcs_bp.route('/jobTableRepare', methods=['GET'])
def job_table_repare():
    return render_template('job_table_repare.html')


# 模型字段比对
@dcs_bp.route('/compareTableJobResult', methods=['GET'])
def compare_table_job_result():
    return render_template('compare_table_job_result.html')


# 模型字段比对及修复
@dcs_bp.route('/jobTableColumnRepare', methods=['GET'])
def job_table_column_repare():
    return render_template('job_table_column_repare.html')
